import React from "react";
import { useRouter } from "next/router";
import Link from "next/link";

export default function User() {
  const router = useRouter();
  const userName = router.query.username;
  return (
    <>
      <div>指定用户的全部信息页面{userName}</div>
      <Link href={`/users/${userName}/desc`}>查看个人信息</Link>
    </>
  );
}
